home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / utility / fmat65.zip / FMAT.DOC < prev    next >
Text File  |  1994-04-16  |  13KB  |  259 lines

  1. ┌─────────────────────────────────────────────────────────────────────────────┐
  2. │                       ██████┐ ██┐  ██┐  ████┐  ██████┐                      │
  3. │                       ██┌───┘ ███┐███│ ██┌─██┐ └─██┌─┘                      │
  4. │                       ████┐   ███████│ ██████│   ██│                        │
  5. │                       ██┌─┘   ██┌█┌██│ ██┌─██│   ██│                        │
  6. │                       ██│     ██│└┘██│ ██│ ██│   ██│                        │
  7. │                       └─┘     └─┘  └─┘ └─┘ └─┘   └─┘                        │
  8. │                     FMAT V6.5, A Simple Disk Initializer                    │
  9. │                     Copyright (C) 1991-94 by Chris Buijs                    │
  10. └─────────────────────────────────────────────────────────────────────────────┘
  11.  
  12.   I had the need for a SMALL and FAST format utility which could be included
  13.   in some archives i use for my BBS without increasing the size of the archive
  14.   to much, so i created one, after making a couple of versions it is grown to
  15.   a very usefull utility with more capability's i first planned....
  16.  
  17.   FMAT is FREEWARE, it may be freely copied as a complete package.
  18.  
  19. ┌─────────────────────────────────────────────────────────────────────────────┐
  20. │ ▒▒▒▒ Disclaimer ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │
  21. └─────────────────────────────────────────────────────────────────────────────┘
  22.  
  23.   FMAT is supplied as is. The author disclaims all warranties, expressed
  24.   or implied, including, without limitation, the warranties of
  25.   merchantability and of fitness for any purpose.
  26.  
  27.   The author assumes no liability for damages, direct or consequential, which
  28.   may result from the use of FMAT.
  29.  
  30.   Feel free to share FMAT with your friends, but please do not give it away
  31.   altered or as part of another system.
  32.  
  33.   In commercial environments FMAT may only be used when the author has
  34.   given his explicit permission.
  35.  
  36. ┌─────────────────────────────────────────────────────────────────────────────┐
  37. │ ▒▒▒▒ Requires ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │
  38. └─────────────────────────────────────────────────────────────────────────────┘
  39.  
  40.   FMAT requires the following:   XT or AT computer.
  41.                                  128 KB free memory.
  42.                                  MS/PC-DOS V4.0 or higher.
  43.                                  A standard floppy-drive.
  44.  
  45. ┌─────────────────────────────────────────────────────────────────────────────┐
  46. │ ▒▒▒▒ Usage ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │
  47. └─────────────────────────────────────────────────────────────────────────────┘
  48.  
  49.   FMAT is simple to use, it uses the same parameters as the DOS format
  50.   utility, FMAT only formats DISKETTES, all formats on different drives
  51.   or diskettes are allowed, so you can format a 360 kb 3.5-Inch floppy in
  52.   a 1.44 MB drive if you want, this can very handy when you have a 1.2 MB
  53.   drive and must convert a disk-file to disk, and the disk-file represents
  54.   a 720 KB disk.
  55.  
  56.   Syntax:  FMAT <Drive> [Parameters]
  57.  
  58.   Parameters:  /1         - Format a single side of a disk.
  59.                /2         - Format both sides of a disk.
  60.                /4         - Format a 5.25-inch 360 KB disk.
  61.                /8         - Format 8 sectors per track.
  62.                /C:Sects   - Specifies the number of sectors per cluster.
  63.                /E         - Erase disk, all tracks will be cleared.
  64.                /F:Size    - Specifies the size of the disk to format.
  65.                /I:Interl  - Specifys sector-interleave.
  66.                /M         - Multiple disk formatting.
  67.                /N:Sects   - Specifies the number of sectors per track.
  68.                /Q         - Perform a quick-format.
  69.                /R:Entrys  - Specifies the number of entrys in root-directory.
  70.                /S         - Create a bootable disk.
  71.                /T:Tracks  - Specifies the number of tracks per side.
  72.                /U         - Unconditional format (Batch).
  73.                /V[:Label] - Specifies the volume label (Max 11 chars).
  74.                /W         - Write Verify, verify every track after format.
  75.                /X[:Sects] - Enable sector-shifting (enables drives to
  76.                             read the formatted disk faster).
  77.  
  78.   More info about some parameters:
  79.  
  80.   /E - This parameter will erase all tracks on the disk by writing zero's
  81.        to it, the boot-sector, fat-tables and root-directory will be
  82.        re-initialized.
  83.  
  84.   /I - Specifies the sector-interleave, the number of sectors the leave
  85.        between following sectors, FMAT calculates automatically which
  86.        interleave is the best to use.
  87.  
  88.   /N - Specifies the number of sector per track, by testing we discovered
  89.        that the maximum value of 22 can be used before FMAT gets any errors,
  90.        this depends on what kind of disk-drive you use.
  91.  
  92.   /Q - Like DOS 5.0 this will do a initialization of the boot-sector, FATS
  93.        and root-directory.
  94.  
  95.   /R - Specifies the number of root-entrys, the maximum setting DOS allowes
  96.        is 224 entrys.
  97.  
  98.   /T - Specifies the number of tracks per side, by testing we discovered that
  99.        the maximum value of 84 can be used before FMAT gets any errors, this
  100.        depends on what kind of disk-drive you use.
  101.  
  102.   /W - Turns on write-verify, when you use this, FMAT will write to the
  103.        track that was formatted a test-patern and will read the track in,
  104.        FMAT will then compare the data read with the data that was written,
  105.        when the data doesn't match, a verify error will be displayed.
  106.  
  107.   /X - Turns on sector-shifting, when you enable this, FMAT will shift the
  108.        starting sector each track it formats, this will speed up
  109.        read-operations of the formatted disk, some explaination:
  110.  
  111.        When a drive wants to read some tracks, it first wants to find sector
  112.        one of the first track, when it is found the track is read in and the
  113.        heads are moved to the second track, because the disk is still
  114.        spinning, the head is not positioned at sector one of the second
  115.        track, but on the third or fourth (depends what kind of drive you
  116.        have and how fast it is), so the first sector must be found again.
  117.        FMAT can shift the sectors so that when the head is positioned
  118.        onto the next track it can find sector one immidiate, this will
  119.        speedup disk-reading at the most 50% !!!
  120.        By tests we discovered that a sector-shift of 3 or 4 sectors will
  121.        speedup the most drives (both 3.5 and 5.25 inch drives), we recommed
  122.        to use a sector-shift of 3 for 5.25 inch drives, and a sector-shift
  123.        of 4 for 3.5 inch drives.
  124.  
  125.        NOTE: on some drives sector-shifting will SLOW-DOWN your drive, you
  126.              are on your own to test this.
  127.  
  128. ┌─────────────────────────────────────────────────────────────────────────────┐
  129. │ ▒▒▒▒ FMAT Environment variable ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │
  130. └─────────────────────────────────────────────────────────────────────────────┘
  131.  
  132.   You can use the environment variable FMAT to define the default-settings
  133.   at startup, for example, is you always format drive A: at 720 KB and want
  134.   to do it quick, you can include for example in your AUTOEXEC.BAT file:
  135.  
  136.     SET FMAT=A: /F:720 /Q
  137.  
  138.   The only thing you'll ever have to do is typing in FMAT followed by an
  139.   ENTER and FMAT will format drive A: quickly at 720 KB.
  140.  
  141.   NOTE: The parameters you use at the command-line ALWAYS overrule the
  142.         parameters you use in the FMAT environment variable.
  143.  
  144. ┌─────────────────────────────────────────────────────────────────────────────┐
  145. │ ▒▒▒▒ NON-Bootable Disks ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │
  146. └─────────────────────────────────────────────────────────────────────────────┘
  147.  
  148.   When you create a NON-Bootable disk, FMAT will create a special boot-sector
  149.   on it, when you boot from a non-bootable disk created by FMAT, it will
  150.   automatically boot from drive C: if possible, when this is not possible,
  151.   the standard message is displayed.
  152.  
  153. ┌─────────────────────────────────────────────────────────────────────────────┐
  154. │ ▒▒▒▒ Formats ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │
  155. └─────────────────────────────────────────────────────────────────────────────┘
  156.  
  157.   The following table shows the combination of parameters that can be used
  158.   to format diskettes with a higher capacity, not all combinations are shown,
  159.   but this ones most certainly work.
  160.  
  161.   FMAT automatically adjust the gap-size between sectors so that all sectors
  162.   can fit into a track, the sector values in this table are not the maximum
  163.   values but the reliable ones, use the trial/error method to find out your
  164.   maximum settings.
  165.  
  166.    Size    Tracks  Sectors  Drive   DiskType  Parameters
  167.   ───────  ──────  ───────  ─────   ────────  ─────────────────────────────
  168.   360  KB    40       9     12345   5¼ DS/DD  /F:360
  169.   369  KB    41       9     12345   5¼ DS/DD  /F:369
  170.   400  KB    40      10     12345   5¼ DS/DD  /F:400
  171.   410  KB    41      10     12345   5¼ DS/DD  /F:410
  172.   720  KB    80       9     .2345   3½ DS/DD  /F:720
  173.   738  KB    82       9     .2345   3½ DS/DD  /F:738
  174.   800  KB    80      10     .2345   3½ DS/DD  /F:800
  175.   820  KB    82      10     .2345   3½ DS/DD  /F:820
  176.   1200 KB    80      15     ..345   5¼ DS/HD  /F:1200
  177.   1230 KB    82      15     ..345   5¼ DS/HD  /F:1230
  178.   1280 KB    80      16     ..345   5¼ DS/HD  /F:1280
  179.   1312 KB    82      16     ..345   5¼ DS/HD  /F:1312
  180.   1440 KB    80      18     ...45   3½ DS/HD  /F:1440
  181.   1476 KB    82      18     ...45   3½ DS/HD  /F:1476
  182.   1600 KB    80      20     ...45   3½ DS/HD  /F:1600
  183.   1640 KB    82      20     ...45   3½ DS/HD  /F:1640
  184.   1680 KB    80      21     ...45   3½ DS/HD  /F:1680
  185.   1722 KB    82      21     ...45   3½ DS/HD  /F:1722
  186.   2880 KB    80      36     ....5   3½ DS/EHD /F:2880  
  187.  
  188.   Drive:  1 = 360 KB Drive
  189.           2 = 720 KB Drive
  190.           3 = 1.2 MB Drive
  191.           4 = 1.44 MB Drive
  192.           5 = 2.88 MB Drive
  193.  
  194. ┌─────────────────────────────────────────────────────────────────────────────┐
  195. │ ▒▒▒▒ Error Codes ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │
  196. └─────────────────────────────────────────────────────────────────────────────┘
  197.  
  198.   When FMAT is running, it can happen that FMAT aborts with the message:
  199.  
  200.     ==== (Type) ERROR: nnn
  201.  
  202.   This can happen when a bad diskette is used or something like that, the
  203.   message wil return a number, following is a list with explaination of
  204.   most common diskette-drive codes:
  205.  
  206.   Code Explaination
  207.   ──── ──────────────────────────────────────────────────────────────────────
  208.     1  Bad command, FMAT works only on DISKETTE drives.
  209.     2  Address mark not found, a bad diskette is used.
  210.     3  Diskette is write-protected.
  211.     4  Sector not found.
  212.     8  DMA Overrun, Check memory manager or cache.
  213.     9  DMA Across 64K Boundery, Check memory manager or cache.
  214.    13  Unsupported track (strange floppy formats like Amiga, atari etc.).
  215.    16  Bad CRC/ECC, bad diskette.
  216.    32  Controller failure, something is wrong with your controller.
  217.    64  Seek failed, FMAT couldn't verify a track or sector.
  218.   128  Time-Out, controller or drive doesn't respond fast enough.
  219.  -127  No diskette present in drive.
  220.  
  221.  
  222.   When an error occurrs, FMAT wil also exit with an errorlevel, the
  223.   following list explains the errorlevels:
  224.  
  225.   Code Explaination
  226.   ──── ──────────────────────────────────────────────────────────────────────
  227.    0   No error.
  228.    1   Incorrect DOS-Version (4.0 or higher needed).
  229.    2   Invalid drive-specification.
  230.    3   Drive-Type not supported.
  231.    4   Invalid parameter used or wrong syntax.
  232.    5   Error on system-files.
  233.    6   Error copying system-files.
  234.    7   General disk-error.
  235.  
  236. ┌─────────────────────────────────────────────────────────────────────────────┐
  237. │ ▒▒▒▒ Support ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │
  238. └─────────────────────────────────────────────────────────────────────────────┘
  239.  
  240.   For bug-reports, suggestions or other things concerning FMAT, you can
  241.   write me a letter at the followin address:
  242.  
  243.     C.Buijs
  244.     De Spil 22
  245.     1507 CX Zaandam
  246.     Netherlands
  247.  
  248.   Or phone to my BBS:
  249.  
  250.     Action Board Zaandam
  251.     Phone: +31-(0)75-704890
  252.     Speeds: 1200,2400 HST MNP V42 V42Bis 14.400
  253.  
  254.   Or send me Email, FidoNet   : 2:280/407.16
  255.                     InterNet  : 100117.3242@compuserve.com
  256.                     Compuserve: 100117,3242
  257.  
  258.   Have Fun...
  259.